$CurUser=wp_get_current_user();
$orgtype=$CurUser->organization_type;
/*  echo $orgtype; */
if ($orgtype=='Concession (e.g. Pop Corn; Ice Cream Cart)'||$orgtype=='Hot Dog/Smokie Cart'||$orgtype=='Mobile Food Unit/Portable Kitchen') {
       $type=3;
} elseif ($orgtype=='Business (single standing)'||$orgtype=='Business (multiple locations) in Vancouver or BC'||$orgtype=='Business (National or International)') {
       $type=2;
} else {
       $type=1;
}
$admin=$CurUser->wp_user_level;
$pages=get_pages('child_of='.$post->ID.'&sort_column=menu_order&sort_order=asc');
/*   echo $type; */
foreach ($pages as $pagg) {
   $formtype=get_post_meta($pagg->ID,'form-type',true);

/*   echo $formtype; */
    if (($formtype=='float'&&($type==1||$type==2))||($formtype=='march'&&$type==1)||$formtype=='event'||$admin>=5) {
	   $list = '<li class"page_item page-item-'.$pagg->ID.'">';
	   $list .= '<a href="'.get_page_link($pagg->ID).'" title="'.$pagg->post_title.'">'.$pagg->post_title.'</a>';
	   $list .= '</li>';
	echo $list;
   }
}

